/**
 * Created on @@ by 仇科旭
 * Freshpower All Right Reserved.
 */
package com.tieland.gentool.model;

import com.tieland.gentool.util.Util;

public class Column{
	private String columnName;
	private String columnType;

    public String getColumnName(){
		return this.columnName;
	}

	public void setColumnName(String columnName){
		this.columnName = columnName;
	}

	public String getColumnType(){
		return this.columnType;
	}

	public void setColumnType(String columnType){
		this.columnType = columnType;
	}

    public String getFieldColumnName(){
        return Util.toMethodStyle(this.columnName);
    }

    public String getMethodColumnName(){
        return Util.toMethodStyle(this.columnName);
    }

    public String getLowerColumnName(){
        return columnName.toLowerCase();
    }

    public String getUpperColumnName(){
        return columnName.toUpperCase();
    }

    public String getUpColumnName(){
        return Util.trimPrefix(columnName).toUpperCase();
    }

    public String getLowColumnName(){
        return Util.trimPrefix(columnName).toLowerCase();
    }
}
